<template>
  <br />
  <z-affix :offset-top="120" @change="change">
    <z-button>120px to affix top</z-button>
  </z-affix>
</template>
<script>
import { defineComponent } from 'vue'
export default defineComponent({
  setup() {
    const change = affixed => {
      console.log(affixed)
    }
    return {
      change
    }
  }
})
</script>
